package com.plant.user.mapper;


import com.plant.common.domain.User;
import com.plant.common.result.Result;
import com.plant.user.domain.VO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserMapper {

    User login(String phone, String password);

    int recharge(User user);

    @Select("select * from user where id = #{id}")
    User findById(Integer id);


    Integer addUser(User user);

    int updateUser(VO vo);

    List<User> findAll();

    User chaxun(String phone);

    void update(User user);

    int withdrawal(User user);

    int updateUserType(Integer id);

    User findByPhone(String phone);
}
